<div class="wrapper-md" ng-controller="goodsInformation">
    <toaster-container toaster-options="{'position-class': 'toast-top-center', 'close-button':true}"></toaster-container>
    <div ng-if="warehouseList" class="panel panel-default">
        <div class="panel-heading">
            {{title.title}}
            <!--<button style="float: right;margin-top: -5px;margin-left: 15px;" class="btn m-b-xs btn-sm btn-info btn-addon">-->
            <!--<i class="fa fa-trash-o"></i>删除-->
            <!--</button>-->
            <button ng-click="warehouseJump()"  style="float: right;margin-top: -5px;" class="btn m-b-xs btn-sm btn-primary btn-addon">
                <i class="fa fa-plus"></i>新建
            </button>
        </div>
        <div class="panel-body b-b b-light">
            搜索: <input id="filter" type="text" class="form-control input-sm w-sm inline m-r"/>
        </div>
        <div>
            <table class="table m-b-none" ui-jq="footable" data-filter="#filter" data-page-size="10">
                <thead>
                <tr>
                    <th data-toggle="true">{{columns[0].title}}</th>
                    <th>{{columns[1].title}}</th>
                    <th data-hide="phone,tablet">{{columns[2].title}}</th>
                    <th data-hide="phone,tablet" data-name="Date Of Birth">{{columns[3].title}}</th>
                    <th data-hide="phone">{{columns[4].title}}</th>
                    <th data-hide="phone">{{columns[5].title}}</th>
                    <th data-hide="phone">{{columns[6].title}}</th>
                    <th data-hide="phone">{{columns[7].title}}</th>
                    <th data-hide="phone">{{columns[8].title}}</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="tb in saveDate">
                    <td>{{tb.createTime}}</td>
                    <td><a href ng-click="showInfo(tb)">{{tb.hpmc}}</a></td>
                    <td>{{tb.hpbh}}</td>
                    <td data-value="78025368997">{{tb.hpxh}}</td>
                    <td>{{tb.hpdj}}</td>
                    <td>{{tb.hplb}}</td>
                    <td>{{tb.zmkc}}</td>
                    <td>{{tb.sjkc}}</td>
                    <td data-value="1"><span class="{{tb.status1}}" title="Active">{{tb.status}}</span></td>
                </tr>
                </tbody>
                <tfoot class="hide-if-no-paging">
                <tr>
                    <td colspan="5" class="text-center">
                        <ul class="pagination"></ul>
                    </td>
                </tr>
                </tfoot>
            </table>


        </div>
    </div>
    <div ng-if="warehouseAdd" class="panel panel-default">
        <div class="panel-heading">
            <u style="cursor:pointer"  ng-click="warehouseJump()">{{title.title}}</u> / {{title.addTitle}}
            <button ng-click="open('sm')" style="float: right;margin-top: -5px;" class="btn m-b-xs btn-sm btn-primary btn-addon">
                <i class="fa fa-plus"></i>保存
            </button>
        </div>
        <div class="panel-body">
            <form class="form-horizontal" method="get">
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-id-1"><span style="color:red">*</span>货品名称</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="hpmc" value="{{warhouseRow.hpmc}}">
                    </div>
                    <label class="col-sm-2 control-label" for="input-id-2"><span style="color:red">*</span>货品编码</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="hpbh" value="{{warhouseRow.hpbh}}">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-id-1"><span style="color:red">*</span>货品型号</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="hpxh" value="{{warhouseRow.hpxh}}">
                    </div>
                    <label class="col-sm-2 control-label" for="input-id-2"><span style="color:red">*</span>货品单价</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="hpdj" value="{{warhouseRow.hpdj}}">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-id-1"><span style="color:red">*</span>账面库存</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="zmkc" value="{{warhouseRow.zmkc}}">
                    </div>
                    <label class="col-sm-2 control-label" for="input-id-2"><span style="color:red">*</span>实际库存</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="sjkc" value="{{warhouseRow.sjkc}}">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-id-3"><span style="color:red">*</span>货品单位</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="hpdw" value="{{warhouseRow.hpdw}}">
                    </div>
                    <label class="col-sm-2 control-label" for="input-id-4">货品类别</label>
                    <div class="col-sm-4">
                        <select class="form-control" id="hplb" value="{{warhouseRow.hplb}}">
                            <option value="成品仓库">成品仓库</option>
                            <option value="毛坯仓库">毛坯仓库</option>
                            <option value="装配仓库">装配仓库</option>
                            <option value="退货仓库">退货仓库</option>
                            <option value="销售仓库">销售仓库</option>
                        </select>

                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-id-1">备注</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="bz" value="{{warhouseRow.bz}}">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-id-1">是否启用</label>
                    <label class="i-switch m-t-xs m-r">
                        <input type="checkbox" id="qy">
                        <i></i>
                    </label>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
            </form>
        </div>
    </div>
</div>
<script type="text/ng-template" id="myModalContent.html">
    <div ng-include="'tpl/modal.html'"></div>
</script>
<script type="text/ng-template" id="selectDept.html">
    <div ng-include="'tpl/selectDept.html'"></div>
</script>